package com.bw.controller;

import com.bw.bean.Orderinfo;
import com.bw.service.OrderinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class Orderinfocontroller {
    @Autowired
    OrderinfoService orderinfoService;

    @GetMapping("/findOrderinfoList")
    public List<Orderinfo> findOrderinfoList(){
        return orderinfoService.findOrderinfoList();
    }

    @GetMapping("/find2")
    public List<Map<String,Object>> find2(){
        return orderinfoService.find2();
    }
    @GetMapping("/find3")
    public List<Map<String,Object>> find3(){
        return orderinfoService.find3();
    }
    @GetMapping("/find4")
    public List<Map<String,Object>> find4(){
        return orderinfoService.find4();
    }
    @GetMapping("/find5")
    public List<Map<String,Object>> find5(){
        return orderinfoService.find5();
    }
    @GetMapping("/find6")
    public List<Map<String,Object>> find6(){
        return orderinfoService.find6();
    }
    @GetMapping("/find7")
    public List<Map<String,Object>> find7(){
        return orderinfoService.find7();
    }
    @GetMapping("/find8")
    public List<Map<String,Object>> find8(){
        return orderinfoService.find8();
    }
    @GetMapping("/find9")
    public List<Map<String,Object>> find9(){
        return orderinfoService.find9();
    }
    @GetMapping("/find10")
    public List<Map<String,Object>> find20(){
        return orderinfoService.find10();
    }
}
